package com.youxin.busfoundation.common;

import com.youxin.busfoundation.bean.BusinessMessages;
import com.youxin.busfoundation.bean.ResponseMessage;
import com.youxin.foundation.lang.BaseException;

/**
 * 基础业务类异常类
 * @author yingde.cao
 *
 */
public class BusinessDataException extends BaseException{

	private static final long serialVersionUID = 132598409547409L;
	public BusinessDataException(int code, String msg)
	{
		super(code,msg);
	}
	
	public BusinessDataException(ResponseMessage message)
	{
		this(message.getCode(), message.getMsg());
	}
	
	public BusinessDataException(String msg)
	{
		super(BusinessMessages.USERFAILURE_CODE,msg);
	}
}
